import http from '../../utils/http/request'

// 根据ID查询新闻播报
export function getDeliveryIdList(data) {
    return http({
        url: '/sys/expressdelivery/info/',
        method: 'GET',
        data
    })
}

//获取新闻数据
export function getDeliveryList(data) {
    // return http({
    //     url: '/sys/expressdelivery/list',
    //     method: 'POST',
    //     params: data
    // })
    return http.post('/sys/expressdelivery/list',data)
}

//新增新闻数据
export function addDelivery(data) {
    return http({
        url: '/sys/expressdelivery/save',
        method: 'POST',
        params: data
    })
}
//更新新闻数据
export function updateDelivery(data) {
    return http({
        url: '/sys/expressdelivery/update',
        method: 'POST',
        params: data
    })
}

//删除新闻数据
export function delDelivery(data) {
    return http({
        url: '/sys/expressdelivery/delete',
        method: 'POST',
        params: data
    })
}

//上传新闻图片
// export function uploadImage(data) {
//     return http({
//         url: '/sys/rotation/uploadImage',
//         method: 'POST',
//         params: data
//     })
// }
